﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SiteServer.Plugin;
using SS.LNDX.Service.Core.Provider;

namespace SS.LNDX.Service
{
    public class Main : PluginBase
    {
        public override void Startup(IService service)
        {
            service.AddSiteMenu(siteId => new Menu
            {
                Text = "报名管理",
                IconClass = "",
                Menus = new List<Menu>
                {
                    new Menu
                    {
                        Text = "运行概况",
                        Href = "pages/dashboard.html"
                    },
                    new Menu
                    {
                        Text = "学员报名",
                        Href = "pages/enrolls.html"
                    },
                    new Menu
                    {
                        Text = "学员管理",
                        Href = "pages/students.html"
                    }
                }
            }).AddDatabaseTable(EnrollmentDao.TableName, EnrollmentDao.Columns);
        }
    }
}
